#ifndef PCDUINO_MANAGER_H
#define PCDUINO_MANAGER_H

#include <stdio.h>

#define NUMBER_PINS 18

struct PcDuino
{
	FILE* gpioModeFiles[NUMBER_PINS];
	FILE* gpioPinFiles[NUMBER_PINS][2];
};
typedef struct PcDuino PcDuino;

int initCard(PcDuino *card);
int stopCard(PcDuino *card);
int setModePin(PcDuino *card, int numPin, char* mode);
int setValuePin(PcDuino *card, int numPin, char* mode);
int getValuePin(PcDuino *card, int numPin);

#endif
